#include <stdio.h>
#include <math.h>
int main()
{
    double a,b,pi=acos(-1);
    int i=1;
    while(scanf("%lf %lf",&a,&b)&&(a||b))
    {
        printf("Case %d:%6.2f\n",i,(2*a*a*pi+2*a*pi*b));
        i++;
    }
}
